package kr.hkit.BusinessManagement.DTO;

public class ProductDTO {
	private String code;
	private String name;
	private int sellPrice;
	private int offerPrice;
	
	public ProductDTO() {
	}

	public ProductDTO(String code, String name, int sellPrice, int offerPrice) {
		this.code = code;
		this.name = name;
		this.sellPrice = sellPrice;
		this.offerPrice = offerPrice;
	}

	@Override
	public String toString() {
		return String.format(
				"제품 등록 : 코드=%s, 이름=%s, 판매가격=%s, 원가=%s",
				code, name, sellPrice, offerPrice);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(int sellPrice) {
		this.sellPrice = sellPrice;
	}

	public int getOfferPrice() {
		return offerPrice;
	}

	public void setOfferPrice(int offerPrice) {
		this.offerPrice = offerPrice;
	}
	
	
	
	
}
